<?php

class Mail_Widgets_FeedBackList_Widget extends Tomato_Widget{
	protected function _prepareShow(){
		$limit = $this->_request->getParam('limit', 5);
		$mailModel  = Rabbit_Model_Factory::getInstance()->setModule('mail')->getMailModel();
		$feedbacks = $mailModel->getFeedBacks($limit);
		$this->_view->assign('feedbacks', $feedbacks);
	}
}
?>